package com.kgc.scd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.scd.bean.Cart;
import com.kgc.scd.bean.CartExample;
import java.util.List;

import com.kgc.scd.bean.CartItem;
import org.apache.ibatis.annotations.Param;

public interface CartMapper extends BaseMapper<Cart> {
    long countByExample(CartExample example);

    int deleteByExample(CartExample example);

    int deleteByPrimaryKey(Integer cartId);

    int insert(Cart record);

    int insertSelective(Cart record);

    List<Cart> selectByExample(CartExample example);

    Cart selectByPrimaryKey(Integer cartId);

    int updateByExampleSelective(@Param("record") Cart record, @Param("example") CartExample example);

    int updateByExample(@Param("record") Cart record, @Param("example") CartExample example);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);

    List<CartItem> selectDetailByUserId(@Param("userId") String userId);

    List<Cart> selectDetailReturnCart(@Param("userId") String userId);
}